package com.ruoyi.auth.feign;

import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "ruoyi-system", path = "/system") // 目标服务名称和基础路径
public interface SystemFeignClient {

    @GetMapping("/user/list")
    R<?> getUserList(@RequestParam(value = "username", required = false) String username,
                     @RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
                     @RequestParam(value = "pageSize", defaultValue = "10") int pageSize);
}
